#include<stdio.h>

int add(int a,int b)
{
	return a+b;
}
int main()
{
	int a=10;
	int b=20;
	int (*p)(int,int)=&add;
	int res1=(*p)(a,b);
	//cout<<res<<endl;
	int res2=p(a,b);
	printf("%d\n",res1);
	printf("%d\n",res2);
	return 0;
}
